import type { Metadata } from 'next'
import { getDefaultsForSchema } from 'zod-defaults'

import { ClientCard } from '@/components/cards/client.card'

import { NO_INDEX_PAGE } from '@/constants/seo.constants'

import { clientScheme } from '@/types/client.types'

export const metadata: Metadata = {
	title: 'Создание клиента',
	...NO_INDEX_PAGE
}

export default function NewClientPage() {
	return (
		<ClientCard
			client_data={getDefaultsForSchema(clientScheme)}
			createMode={true}
		/>
	)
}
